suma = 0 for licznik in xrange(100): licznik += 1 if licznik % 2 == 0: suma += licznik print suma